@import "reset.css";
@import "global.css";
@import "icons.css";

#header {
	background: url("/media/img/bg-top.png") left top repeat-x;
	height: 71px;
	color: #dfdfdf;
}

#page {
}

.b-text {
	font-size: 1.4em;
}

.b-list__nobullet {
	list-style: none;
}

.b-list__horizontal li {
	display: inline;
}

/* layout */
#softwareInfo,
#sidebar {
	width: 20%;
	float: left;
}

#softwareInfo h1 {
	font-size: 2em;
	font-weight: normal;
	padding: 1em;
}

#nav_tabs ul {
	padding-top: 46px;
}

#nav_tabs a {
	font-size: 1.2em;
	text-decoration: none;
	color: #000;
}

	#nav_tabs .m-active-tab a {
		font-weight: bold;
	}


#sidebar {
	border-right: #ececec solid 1px;
	background-color: #dddddd;
	white-space: nowrap;
	overflow: hidden;
}
	#sidebar .decor-border {
		border-right: #cfcfcf solid 1px;
		padding: 1em;
	}

/* Sidebar items */

.connectionItem {
	list-style: none;
	margin: 1em 0;
}

.connectionItem .iconChevron {
	cursor: pointer;
}

	.connectionTitle {
		font-size: 1.4em;
	}

	.connectionContent {
		margin-top: .5em;
	}

	.connectionLink {
		text-decoration: none;
		font-weight: bold;
		color: #000;
	}

.tableLink .link,
.schemaLink .link,
.databaseLink .link,
.connectionLink .link {
	border-bottom: black dotted 1px;
}

.databaseItem,
.schemaItem,
.tableItem {
	margin-left: 16px;
}

	.databaseTitle,
	.schemaTitle,
	.tableTitle {
		line-height: 1.5;
		font-size: 1.2em;
	}

	.databaseLink,
	.schemaLink,
	.tableLink {
		text-decoration: none;
		color: #000;
	}

#content {
	margin-left: 20%;
	background-color: #e2e2e2;
}

.b-schema__name a,
.b-table__name a {
	padding-left: 34px;
	line-height: 1.4em;
}

.b-schemas,
.b-tables {
	margin-left: 16px;
}

#table_view_menu {
	font-size: 1.2em;
	margin: 0.5em 0;
}

#table_view_menu a {
	text-decoration: none;
	color: black;
	font-weight: bold;
	border: solid 1px #6e6e6e;
	padding: 0.2em 1em;
}

#table_view_menu .m-tab__selected,
#table_view_menu a:hover {
	background: #6e6e6e;
	color: white;
}

.b-title__content {
	font-weight: bold;
	font-size: 2em;
	margin: 1em 0 0.6em 0;
}

/*
 * Breadcrumbs
 */
#table_breadcrumbs {
	border-bottom: 1px #dfdfdf solid;
}

.m-link__breadcrumbs {
	text-decoration: none;
	padding-right: 0.5em;
	font-size: 1.6em;
}
	a:hover.m-link__breadcrumbs {
		text-decoration: underline;
	}

.m-link__dbname,
.m-link__schema,
.m-link__table {
	padding-left: 16px;
}

/*
 * Tables
 */

.b-table__allwidth {
	width: 98%;
}

.b-field {
	font-size: 1.4em;
}

.m-field__center {
	text-align: center !important;
}

.b-field td, .b-field th {
	padding: 0.2em 1em 0.2em 0.4em;
	text-align: left;
	border: #dfdfdf 1px solid;
}

.b-table_header:hover {
	background-color: white !important;
}

.m-row__odd {
	background-color: #f2f2f2;
}

.m-table__hover_highlight tr:hover {
	background-color: #ffe4c4;
}

.w__5 { width: 5%; }
.w__10 { width: 10%; }
.w__20 { width: 20%; }
.w__30 { width: 30%; }
.w__40 { width: 40%; }
.w__50 { width: 50%; }


.b-tab {
	position: relative;
	display: inline-block;
	overflow: hidden;
	height: 25px;
}

	li.b-tab {
		list-style: none;
	}

.b-maintab {
	background: url('../img/tabs.png') no-repeat;
	display: block;
	height: 25px;
}

	.b-tabs-l {
		float: left;
		width: 6px;
	}

	.b-tabs-r {
		margin-left: 6px;
		min-width: 12px;
	}

	.b-maintab.b-tabs-l { background-position: 0 -25px; }
	.b-maintab.b-tabs-r { background-position: 100% -25px; }

	.m-active-tab .b-maintab.b-tabs-l { background-position: 0 0; }
	.m-active-tab .b-maintab.b-tabs-r { background-position: 100% 0; }

	.b-maintab + div {
		position: relative;
		height: 25px;
		top: -25px;
		line-height: 25px;
		padding: 0 1em;
	}